package com.ruoyi.dl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.dl.mapper.DlUserGameMapper;
import com.ruoyi.dl.domain.DlUserGame;
import com.ruoyi.dl.service.IDlUserGameService;
import com.ruoyi.common.core.text.Convert;

/**
 * 代练等级Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-01-04
 */
@Service
public class DlUserGameServiceImpl implements IDlUserGameService 
{
    @Autowired
    private DlUserGameMapper dlUserGameMapper;

    /**
     * 查询代练等级
     * 
     * @param id 代练等级ID
     * @return 代练等级
     */
    @Override
    public DlUserGame selectDlUserGameById(Integer id)
    {
        return dlUserGameMapper.selectDlUserGameById(id);
    }

    /**
     * 查询代练等级列表
     * 
     * @param dlUserGame 代练等级
     * @return 代练等级
     */
    @Override
    public List<DlUserGame> selectDlUserGameList(DlUserGame dlUserGame)
    {
        return dlUserGameMapper.selectDlUserGameList(dlUserGame);
    }

    /**
     * 新增代练等级
     * 
     * @param dlUserGame 代练等级
     * @return 结果
     */
    @Override
    public int insertDlUserGame(DlUserGame dlUserGame)
    {
        return dlUserGameMapper.insertDlUserGame(dlUserGame);
    }

    /**
     * 修改代练等级
     * 
     * @param dlUserGame 代练等级
     * @return 结果
     */
    @Override
    public int updateDlUserGame(DlUserGame dlUserGame)
    {
        return dlUserGameMapper.updateDlUserGame(dlUserGame);
    }

    /**
     * 删除代练等级对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteDlUserGameByIds(String ids)
    {
        return dlUserGameMapper.deleteDlUserGameByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除代练等级信息
     * 
     * @param id 代练等级ID
     * @return 结果
     */
    @Override
    public int deleteDlUserGameById(Integer id)
    {
        return dlUserGameMapper.deleteDlUserGameById(id);
    }
}
